package source.model.skill;

public class SkillDetectTrap extends Skill {
	private int skillLevel;
	private int uses;

	public SkillDetectTrap( int level ) {
		super("detecttrap");
		skillLevel = level;
		uses = 0;
	}

	public boolean Search() {
		uses++;
		double rdm = Math.random() * getMasteryLevel();
		if (rdm - skillLevel < 0) {
			System.out.println("SUCCESS!!!");
			return true;
		}
		else {
			System.out.println("FAILURE");
			return false;
		}
	}
}
